package main

import (
	"github.com/garyburd/redigo/redis"
)

var pool *redis.Pool

func InitPool(address string)  {
	pool = &redis.Pool{
		Dial: func() (conn redis.Conn, err error) {
			return redis.Dial("tcp", address)
		},
		TestOnBorrow:    nil,
		MaxIdle:         16,
		MaxActive:       0,
		IdleTimeout:     0,
		Wait:            false,
		MaxConnLifetime: 0,
	}
}
